/**
 * 
 * 人力资源选择的refer
 *
 * props: {
 *      onChange: function(value) {},
 *      value: value
 * } 
*/

import React, {Component} from 'react';

import {
    base,
    high
} from 'nc-lightapp-front';

import getLanguage from '../../language';

let language = {};

const {
    Refer
} = high;

export default (props) => {
    setTimeout(() => {
        this.props.MultiInit.getMultiLang({
            moduleId: 'p6007',
            domainName: 'hrhi',
            callback: (json, status, inlt) => {
                language = json;
            }
        });
    }, 300);
    return (
        <Refer
            refType={'tree'}
            refName={language['hi6007-000007']}/* 国际化处理： 人力资源组织*/
            placeholder={language['hi6007-000007']}/* 国际化处理： 人力资源组织*/
            queryTreeUrl={'/nccloud/riaorg/ref/AdminOrgDefaultTreeRef.do'}
            onChange={props.onChange}
            value={props.value}
        />
    );

}
